package com.mrobuy.jdvc.entity;

import com.gavel.annotation.FieldMeta;
import com.gavel.annotation.TableMeta;
import com.gavel.database.SQLExecutor;

import java.util.ArrayList;
import java.util.List;

@TableMeta(name = "VC_ITEM_PROP_VALUE", title = "京东类目属性值")
public class VCItemPropValue {

    @FieldMeta(name = "ID", title = "ID", length = 32, primary = true)
    private String id;

    @FieldMeta(name = "PRODUCTID", title = "商品ID", length = 32)
    private String productid;

    @FieldMeta(name = "PROPID", title = "规格参数ID")
    private Integer propid;  // 规格参数ID

    @FieldMeta(name = "PROPNAME", title = "规格参数", length = 32)
    private String propname;  // 规格参数ID

    @FieldMeta(name = "TYPE", title = "规格参数ID", length = 32)
    private String type;  // 规格参数ID

    @FieldMeta(name = "PROPVID", title = "单选属性值ID", length = 32)
    private String propvid;  //单选属性值ID

    @FieldMeta(name = "PROPREMARK", title = "数值/文本内容/单选备注", length = 50)
    private String propremark;  // valueId : 700013

    @FieldMeta(name = "PROPALIAS", title = "单选别名", length = 50)
    private String propalias;  //  valueName : 救生衣

    @FieldMeta(name = "PROPVALUES", title = "复选的属性值ID,以英文分号分隔", length = 50)
    private String propvalues;  // "inputType": 3,

    @FieldMeta(name = "REQUIRED", title = "是否必填", length = 8)
    private String required;  // "required": false,


    private List<VCPropValue> options = new ArrayList<>();

    public List<VCPropValue> getOptions() {
        return options;
    }

    public void setOptions(List<VCPropValue> options) {
        this.options = options;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getProductid() {
        return productid;
    }

    public void setProductid(String productid) {
        this.productid = productid;
    }

    public Integer getPropid() {
        return propid;
    }

    public void setPropid(Integer propid) {
        this.propid = propid;
    }

    public String getPropname() {
        return propname;
    }

    public void setPropname(String propname) {
        this.propname = propname;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getPropvid() {
        return propvid;
    }

    public void setPropvid(String propvid) {
        this.propvid = propvid;
    }

    public String getPropremark() {
        return propremark;
    }

    public void setPropremark(String propremark) {
        this.propremark = propremark;
    }

    public String getPropalias() {
        return propalias;
    }

    public void setPropalias(String propalias) {
        this.propalias = propalias;
    }

    public String getPropvalues() {
        return propvalues;
    }

    public void setPropvalues(String propvalues) {
        this.propvalues = propvalues;
    }

    public String getRequired() {
        return required;
    }

    public void setRequired(String required) {
        this.required = required;
    }

    public static void main(String[] args) throws Exception {
        SQLExecutor.createTable(VCItemPropValue.class);
    }
}
